<template>
	<div class="seccess">
		<div class="item">
			<img src="../assets/success.png" class="successicon">
			<span class="font">报名成功</span>
			<span class="detail">稍后发送确认短信到您的手机，请注意查收</span>
		</div>
		<div class="btncom">
			
			<van-button class="ret" type="default" size="large" color="#79C620" @click="returnindex">返回当前活动详情</van-button>
			<van-button class="ret" style="margin-top: 20px;" type="default" size="large" color="#79C620" @click="returnhome">返回活动列表页</van-button>
		</div>
		

	</div>
</template>

<script>
	export default {
		data() {
			return {
				id:''
			};
		},
		created(){
			var id = this.$route.query.id //获取活动id
			this.id = id
		},
		methods:{
			returnindex(){
				this.$router.push({
					path:'index',
					query:{
						id:this.id
					}
				})
			},
			returnhome(){
				this.$router.push({
					path:'/'
				})
			}
		}
	}
</script>

<style>
.item{margin: 30px auto;display: flex;align-items: center;justify-content: center;flex-direction: column;}
.font{margin-top: 15px;font-size: 20px;color: #000;}
.btncom{width: 80%;margin: 100px auto 0;}
.ret{font-size: 18px;}
.detail{font-size: 13px;color: #555;margin-top: 10px;}
.successicon{width: 88px;height: 88px;}
</style>
